home *** CD-ROM | disk | FTP | other *** search
- /*
- \funcref{fun\_putenv}{void fun\_chdir ()}
- {}
- {}
- {}
- {}
- {funchdir.c}
- {
-
- This function expects a string to enter in the environment on top of
- the stack.
-
- Return register {\em reg} is set to type {\em e\_int}. The value of the
- return register is set to 0 if the setting was added to the
- environment.
-
- }
- */
-
- #include "icm-exec.h"
- #ifdef M_UNIX /* sco unix 3.2.4.0 conflicting header files ... */
- extern int putenv(const char *);
- #endif
-
- void fun_putenv ()
- {
- register char
- *env;
-
- env = stack [sp].vu.i->ls.str;
-
- reg.type = e_int;
- reg.vu.intval = putenv (xstrdup (env));
- }
-